@{
    ViewBag.title = "index";
    Layout = null;
}


<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head id="head1">
<title>登录</title>
<script type="text/javascript" language="javascript">
    if (this.parent != this) {
        top.location.href = document.location.href;
    }
    function change_verify_code() {
        var vnum;
        vnum = Math.random()
        vnum = Math.round(vnum * 10)
        // var url= "@Url.Action("ImageCode", "help")?t=" + vnum;
        document.getElementById('image1').setAttribute("src", url);
    }
    </script>


    <title>管理员登录</title>
    <link href="@Url.Content("~/Content/login.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script language="JavaScript"  type="text/javascript">
    function submitCheck() {
        var loginName = $.trim($("#username").val());
        var password = $.trim($("#password").val());

        if (loginName == "") {
            window.alert("请输入账号");
            login.username.focus();
            return;
        }
        if (password == "") {
            window.alert("请输入密码");
            login.password.focus();
            return;
        }
        $("#login").submit();
    }
    function keyUpCheck() {
        if (window.event.keyCode == 13) {
            submitCheck();
        }
    }
    window.onload = function () {
        login.username.focus();
        login.username.select();
    }

 
 
</script>
</head>
<body style="background:none;">
    @using (Html.BeginForm("Login", "Admin", new { returnurl = Request.QueryString["returnurl"] }, FormMethod.Post, new { id = "login", name = "login" }))
    {
    <div class="container">
	<h1 class="login-ule">用户登录-后台管理系统</h1>
	<div  class="login_main">
			<div>
				<label for="username">账号<em>*</em></label>
				<input type="text" name="userName"  value="@ViewBag.username" id="username"   onkeyup="keyUpCheck()" class="logininput"/>
			</div>
			<div>
				<label for="password">密码<em>*</em></label>
				<input type="password" name="userPwd" id="password" onkeyup="keyUpCheck()" class="logininput"/>
			</div>
        <div>
            <span class="btn1"><input type="button"  onclick="submitCheck()" id="loginbtn"  value="登陆" /></span>	
            <a target="_blank"  href="#" > 忘记密码</a> 			
        </div>
         <font color="red">
            @Html.ValidationSummary(true)</font>
	</div>
</div>
<div class="banquan"> Copyright © 2010  tom.com 版权所有 </div>
        }
</body>
</html>

